package com.lagou.rpc.consumer;

import com.lagou.rpc.consumer.client.RpcClient;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ClientBootstrapApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(ClientBootstrapApplication.class, args);
    }


    @Override
    public void run(String... args) throws Exception {
        new Thread(new Runnable() {
            @Override
            public void run() {
                RpcClient.initConnectList();
            }
        }).start();
    }
}
